package com.cloudfun.campusshare.device.protocol.response;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wangxiyuan
 * @description
 * @createDate 2021/5/19 10:00
 **/
public class AllPumpWorkInfo extends PumpInfo{
    private AllPumpWorkInfo(){}

    private static List<PumpWorkInfo> list = new ArrayList<>();

    private static AllPumpWorkInfo allPumpWorkInfo = new AllPumpWorkInfo();

    public AllPumpWorkInfo add(PumpWorkInfo pumpWorkInfo){
        list.add(pumpWorkInfo);
        return allPumpWorkInfo;
    }

    public  List<PumpWorkInfo> getList() {
        return list;
    }

    public static AllPumpWorkInfo build(){
        return allPumpWorkInfo;
    }

    public void clear(){
        list.clear();
    }

}
